<%--
  Created by IntelliJ IDEA.
  User: 群威
  Date: 2017/9/24
  Time: 19:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="common/tag.jsp"%>
<html>
<head>
    <title>添加部门</title>
    <%@ include file="common/head.jsp"%>
</head>
<body>
<caption>添加部门</caption>
<form method="post" class="form-horizontal" role="form">
    <div class="form-group">
        <label class="col-sm-2 control-label">部门名称</label>
        <div class="col-sm-3">
            <input type="text" id="dname" name="dname" class="form-control" placeholder="请输入部门名称">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">部门介绍</label>
        <div class="col-sm-4">
            <textarea id="ddesc" name="ddesc" class="form-control" placeholder="请输入部门介绍"></textarea>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button onclick="javascript:ManagerSystem.savePage.saveDepartment({dname:$('#dname').val(),ddesc:$('#ddesc').val()})" type="button" class="btn btn-default">保存</button>
            <button onclick="javascript:ManagerSystem.detailPage.allDepartmentDetail(1)" type="button" class="btn btn-default">后退</button>
        </div>

    </div>
</form>
</body>
<%@ include file="common/bootstrap.jsp"%>
<script src="<%=request.getContextPath()%>/resources/scripts/ManagerSystem.js" type="text/javascript"></script>
</html>
